import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { UserTableComponent } from './user-table/user-table.component';
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { HttpClientInMemoryWebApiModule } from 'angular-in-memory-web-api';
// 内存数据
import { UserFormComponent } from './user-form/user-form.component'
import { NgxDatatableModule } from '@swimlane/ngx-datatable';
import { NzButtonModule } from 'ng-zorro-antd/button';
import { NzModalModule } from 'ng-zorro-antd/modal';
import { NZ_I18N } from 'ng-zorro-antd/i18n';
import { zh_CN } from 'ng-zorro-antd/i18n';
import { registerLocaleData } from '@angular/common';
import zh from '@angular/common/locales/zh';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NzFormModule } from 'ng-zorro-antd/form';
import { NzInputModule } from 'ng-zorro-antd/input';
import { NzSelectModule } from 'ng-zorro-antd/select';
import { NzTableModule } from 'ng-zorro-antd/table';
import { UserTableCopyComponent } from './user-table-copy/user-table-copy.component';
import { NzCheckboxModule } from 'ng-zorro-antd/checkbox'
registerLocaleData(zh);
@NgModule({
  declarations: [
    AppComponent,
    UserTableComponent,
    UserFormComponent,
    UserTableCopyComponent,
    
  ],
  imports: [
    NzModalModule,
    NzButtonModule,
    BrowserModule,
    AppRoutingModule,
    FormsModule,
    HttpClientModule,
    NzCheckboxModule,
    ReactiveFormsModule,
    NgxDatatableModule,
    BrowserAnimationsModule,
    NzFormModule,
    NzInputModule,
    NzSelectModule,
    NzTableModule 
  ],
  providers: [
    { provide: NZ_I18N, useValue: zh_CN }
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
